package com.nice.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HtmlController {
    @GetMapping("/tempindex")
    public ModelAndView tempindex() {
        return new ModelAndView("tempindex.html");
    }

    @GetMapping("/index")
    public ModelAndView index() {
        return new ModelAndView("index.html");
    }
    @GetMapping("/index2")
    public ModelAndView index2() {
        return new ModelAndView("index2.html");
    }

    @GetMapping("/page1")
    public ModelAndView page1() {
        return new ModelAndView("page1.html");
    }
    @GetMapping("/page2")
    public ModelAndView page2() {
        return new ModelAndView("page2.html");
    }
    @GetMapping("/footerpage1")
    public ModelAndView footerpage1() {
        return new ModelAndView("footerpage1.html");
    }

    @GetMapping("/trade")
    public ModelAndView trade() {
        return new ModelAndView("trade.html");
    }

}